Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create tests for basic hashing; add an API to create opaque pointers #879

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

arthurpaulino
Copy link
Contributor

@arthurpaulino arthurpaulino commented Nov 10, 2023

This PR is a follow up to #878 because I realized that we didn't have tests for the basic cases of Store::hash_ptr.

This PR also shows how to achieve opaque functionality with ZPtrs.

Copy link
Contributor

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This PR is a strict improvement.

However, I think it's worth thinking about the places where we could demonstrate the notion of opaque pointers, which I like to think of as non-dereferenceable data:

huitseeker
huitseeker previously approved these changes Nov 13, 2023
src/lem/pointers.rs Show resolved Hide resolved
@arthurpaulino arthurpaulino added this pull request to the merge queue Nov 13, 2023
@arthurpaulino arthurpaulino removed this pull request from the merge queue due to a manual request Nov 13, 2023
Copy link
Contributor

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

Merged via the queue into main with commit 5c022b1 Nov 13, 2023
12 checks passed
@arthurpaulino arthurpaulino deleted the mk-opaque branch November 13, 2023 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants